import GrammarsFrame from '../grammarsFrame'

const Object_entries = () => (
  <GrammarsFrame
    data={{
      title: 'Array.prototype.reduce()',
      desc: (
        <>
          用于
          <span className="wei">把数组通过累加（或累计）计算成一个值</span>
        </>
      ),
      examples: [
        { label: (<>
          <span className="wei">语法</span>
        </>), file: 'demo1.js'
        },{ label: (<>
          <span className="wei">求和</span>
        </>), file: 'demo2.js'
        },{ label: (<>
          <span className="wei">扁平化数组</span>
        </>), file: 'demo3.js'
        },{ label: (<>
          <span className="wei">统计次数</span>
        </>), file: 'demo4.js'
        },{ label: (<>
          <span className="wei">对象数组求和</span>
        </>), file: 'demo5.js'
        },
      ],
    }}
  />
)

export default Object_entries